//
//  NSData+category.m
//  sigleAPP
//
//  Created by SKL on 2017/11/17.
//  Copyright © 2017年 SKL. All rights reserved.
//

#import "NSData+category.h"

@implementation NSData (category)
/*
 NSJSONReadingOptions 读操作  (填0返回不可变容器)
 NSJSONReadingMutableContainers = (1UL << 0), 返回可变容器NSMutableDictionary或NSMutableArray
 NSJSONReadingMutableLeaves = (1UL << 1),     返回的JSON对象中字符串的值为NSMutableString
 NSJSONReadingAllowFragments = (1UL << 2)     允许JSON字符串最外层既不是NSArray也不是NSDictionary，但必须是有效的JSON Fragment
 
 NSJSONWritingOptions) 写操作 （填0即可）
 NSJSONWritingPrettyPrinted = (1UL << 0), json数据格式化输出
 NSJSONWritingSortedKeys
 */
- (NSDictionary *)yjd_dict
{
    return [NSJSONSerialization JSONObjectWithData:self options:0 error:nil];
}

- (void)sp_checkInfo {
    NSLog(@"Get User Succrss");
}
@end
